package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.IdentityView
import hlhj.fhp.checkpoint.javaBean.MyBaseBean
import hlhj.fhp.checkpoint.module.IdentityModule

/**
 * Created by Never Fear   on 2018\11\13 0013.
Never More....
 */
class IdentityPresenter :BasePresenter<IdentityModule,IdentityView>(), IdentityModule.CommitListener {
    override fun commitResp(myBaseBean: MyBaseBean) {
        view?.commitResp(myBaseBean)
    }

    fun commit(c: Context, name:String, idcard_hold_img:String, idcard_front_img:String, idcard_opposite_img:String){
        module?.commitIdentify(c, name, idcard_hold_img, idcard_front_img, idcard_opposite_img)
    }
    override fun createModule() {
        module=IdentityModule()
        module.listener=this
    }
}